package com.social.model;

public class Comment {
    //    日志id不用插入，我在数据库给它设置了自增
    private int c_id;
    private int logId;
    private String userId;
    private String nickname;
    private String avatar;
    private String content;
    //    点赞数



    public Comment() {

    }

//    public Comment(int logId, String userId, String nickname, String avatar, String content) {
//       this.logId = logId;
//        this.userId = userId;
//        this.nickname = nickname;
//        this.avatar = avatar;
//        this.content = content;
//    }

    public Comment(int logId, String nickname, String avatar, String content) {
        this.logId = logId;

        this.nickname = nickname;
        this.avatar = avatar;
        this.content = content;
    }

    //    public Log(String userId, String scope, String content, String[] path, Date date, int likeNum) {
//

    //        this.scope = scope;
//
//        this.imgAdreess = path;
//        this.createTime = date;
//        this.likeNum = likeNum;
//    }
    public int getC_id(){return this.c_id;}
    public int getLogId(){
        return this.logId;
    }
    public String getUserId(){
        return this.userId;
    }
    public String getNickname(){
        return this.nickname;
    }
    public String getAvatar(){
        return this.avatar;
    }
    public String getContent(){
        return this.content;
    }
    public void setC_id(int c_id){this.c_id = c_id;}
    public void setLogId(int logId){
        this.logId = logId;
    }
    public void setUserId(String userId){
        this.userId = userId;
    }
    public void setNickname(String nickname){
        this.nickname = nickname;
    }
    public void setAvatar(String avatar){
        this.avatar = avatar;
    }
    public void setContent(String content){
        this.content = content;
    }

}
